package org.uninova.mobis.gtfs.parser;

import java.sql.Connection;
import java.sql.SQLException;

import org.uninova.mobis.utils.DBUtilsImpl;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		GTFSParser parser = new GTFSParser() ;
		DBUtilsImpl dbUtils = new DBUtilsImpl() ;
		Connection conn = dbUtils.startConnection("jdbc:mysql://10.172.67.227:3306", "root", "grisgris123") ;
		
		String filePath = "/home/paf/GTFS/Sweden/" ;
		
		int result = parser.parseAllGTFSFiles(filePath, conn) ;
		
		try {
			conn.close() ;
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(result) ;

	}

}
